package com.memory.demo.Controller;

import com.memory.demo.entity.Soul;
import com.memory.demo.service.KeepService;
import com.memory.demo.service.PaintService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.xml.crypto.Data;
import java.util.Date;

@RestController
public class KeepController {

    @Resource
    private KeepService keepService;

    @PostMapping("/keep")
    @CrossOrigin
    public String keepimage(@RequestParam("str") String str){
        return keepService.keepimage(str);
    }
}
